program Project2;

{$APPTYPE CONSOLE}

uses
  SysUtils;

var
  n, i, j, t: integer;
  mass: array of integer;
  fout, fin: textfile;
begin
  AssignFile(fin, 'input.txt');
  reset(fin);
  AssignFile(fout, 'output.txt');
  rewrite(fout);
  Readln(fin, n);
  SetLength(mass, n);
  For j:=0 to n-1 do
    read(fin, mass[j]);
  for j := 1 to n - 1 do
  begin
    for i := 0 to n - j - 1 do
    begin
      if (mass[i] > mass[i + 1]) then
      begin
        t := mass[i];
        mass[i] := mass[i + 1];
        mass[i + 1] := t;
      end;
    end;
  end;
  For j:=0 to n-1 do
    Write(fout, mass[j], ' ');
  CloseFile(fout);
  CloseFile(fin);
end.
